<{if $mylinksadcodes.all}>
<{$mylinksadcodes.all}>
<{elseif $mylinksadcodes.viewcat}>
<{$mylinksadcodes.viewcat}>
<{/if}>
<br /><br />
<{if $mylinksshowlogo}>
<div align="center"><{$mylinkslogoimage}></div><br />
<{/if}>
<{if $mylinksshowsearch}>
<div align="center">
<form action="<{$xoops_url}>/search.php" method="get">
<input type="text" id="query" name="query" size="30" maxlength="255" value="" />
<select id="andor" name="andor" size="1">
<option value="AND" selected="selected"><{$lang_all}></option>
<option value="OR"><{$lang_any}></option>
<option value="exact"><{$lang_exact}></option>
</select>
<input type="hidden" name="mids[]" value="<{$module_id}>" />
<input type="hidden" id="action" name="action" value="results" />
<input type="submit" class="formButton" name="submit" id="submit" value="<{$lang_search}>" />
</form>
</div>
<br />
<{/if}>
<{if $catarray.letters}>
<div align="center" class="itemPermaLink"><{$catarray.letters}></div><br />
<{/if}>
<{if $catarray.toolbar}>
<div align="center"><{$catarray.toolbar}></div><br />
<{/if}>

<table width="97%" cellspacing="0" cellpadding="0" border="0" align="center">
  <tr>
    <td>
      <table width="100%" cellspacing="1" cellpadding="2" border="0">
        <tr>
          <td class="newstitle"><b><{$category_path}></b></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td align="center">
      <table width="90%">
        <tr>
          <{foreach item=subcat from=$subcategories}>
            <td align="left"><b><a href="viewcat.php?cid=<{$subcat.id}>"><{$subcat.title}></a></b>&nbsp;(<{$subcat.totallinks}>)<br /><font class="subcategories"><{$subcat.infercategories}></font></td>
            <{if $subcat.count is div by 4}>
            </tr><tr>
            <{/if}>
          <{/foreach}>
        </tr>
      </table>
      <br />
      <hr />

      <{if $show_links == true}>

      <{if $show_nav == true}>
      <div><{$lang_sortby}>&nbsp;&nbsp;<{$lang_title}> (<a href="viewcat.php?cid=<{$category_id}>&amp;orderby=titleA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="viewcat.php?cid=<{$category_id}>&amp;orderby=titleD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)<{$lang_date}> (<a href="viewcat.php?cid=<{$category_id}>&amp;orderby=dateA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="viewcat.php?cid=<{$category_id}>&amp;orderby=dateD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)<{$lang_rating}> (<a href="viewcat.php?cid=<{$category_id}>&amp;orderby=ratingA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="viewcat.php?cid=<{$category_id}>&amp;orderby=ratingD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)<{$lang_popularity}> (<a href="viewcat.php?cid=<{$category_id}>&amp;orderby=hitsA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="viewcat.php?cid=<{$category_id}>&amp;orderby=hitsD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)
      <br /><b><{$lang_cursortedby}></b>
      </div>
      <hr />
      <{/if}>

      <br />
    </td>
  </tr>
</table>
<table cellspacing="0" width="100%">
  <tr>
      <{if $list_mode != true && $mylinksshowfeed}>
    <td align="left">
<a href="javascript:openWithSelfMain('<{$mylinks_weburl}>/feedsubscription.php?feedtype=RSS&feedurl=<{"$mylinks_weburl/rss.php?cid=$category_id"|escape:"url"}>','modulefeedsubscription',300,500);">
<img src="<{$mylinks_imgurl}>/feed-icon.gif" alt="<{$lang_feedsubscript}>" title="<{$lang_feedsubscript_desc}>"  /></a>
<b><{$lang_categoryfeed}></b>
<a href="<{$mylinks_weburl}>/rss.php?cid=<{$category_id}>" target="_blank">
<img src="<{$mylinks_imgurl}>/rss.png"  alt="<{$lang_rssfeed_cat}>" title="<{$lang_rssfeed_cat}>"  /></a>
<a href="<{$mylinks_weburl}>/atom.php?cid=<{$category_id}>" target="_blank">
<img src="<{$mylinks_imgurl}>/atom.png"  alt="<{$lang_atomfeed_cat}>" title="<{$lang_atomfeed_cat}>" /></a>
<a href="<{$mylinks_weburl}>/pda.php?cid=<{$category_id}>" target="_blank">
<img src="<{$mylinks_imgurl}>/pda.png"  alt="<{$lang_pdafeed_cat}>" title="<{$lang_pdafeed_cat}>" /></a>
   </td>
     <{/if}>
   <td align="right">
<{if $mylinksshowthemechanger}>
	<form action="<{$xoops_requesturi}>" method="post">
	<b><{$lang_themechanger}></b><{$mylinksthemeoption}>
	</form>
<{/if}>
  </td>
  </tr>
  </table>
<div style="text-align:center;"><{$page_nav}></div>
<br />
<table width="100%" cellspacing="0" cellpadding="10" border="0">
  <tr>
    <td width="100%" align="right">
<a id="itemtop">
<a href="#itembottom"><img src="<{$mylinks_imgurl}>/bottom.gif" alt="<{$lang_gotobottom}>" title="<{$lang_gotobottom}>"  /></a>
    </td>
  </tr>
  <tr>
    <td width="100%" align="center" valign="top">
    <!-- Start link loop -->
    <{section name=i loop=$links}>
      <{include file="db:`$mydirname`_link.html" link=$links[i]}>
    <{/section}>
    <!-- End link loop -->
    </td>
  </tr>
  <tr>
    <td width="100%" align="right">
<a id="itembottom">
<a href="#itemtop"><img src="<{$mylinks_imgurl}>/top.gif" alt="<{$lang_gototop}>" title="<{$lang_gototop}>"  /></a>
    </td>
  </tr>
</table>
<br />
<div style="text-align:center;"><{$page_nav}></div>
<br />
<div style="text-align:right;"><{$mylinksjumpbox}></div>
<{else}>
    </td>
  </tr>
</table>
<{/if}>

<{if $list_mode != true}>
<{$moremetasearch}>
<{/if}>

<{include file='db:system_notification_select.html'}>